//
//  NSDate+JM.m
//  OpenSesame
//
//  Created by zhangjiaming on 16/2/15.
//  Copyright © 2016年 OpenSesame. All rights reserved.
//

#import "NSDate+JM.h"

@implementation NSDate (JM)
/** 获取当前时间的时间戳,精确到毫秒 */
+ (NSString *)timeStamp {
    NSDate *date = [NSDate dateWithTimeIntervalSinceNow:0];
    NSTimeInterval a = [date timeIntervalSince1970];
    NSString *timeString = [NSString stringWithFormat:@"%0.f", a * 1000];
    return timeString;
}
@end
